/*
 * 
 */
package cn.apestar.common;

import java.nio.charset.Charset;
import java.util.ArrayList;
import cn.apestar.modules.sys.entity.Dict;

public class DataContants {

    // 模特
    public static String USER_YH = "0";

    // 经纪人
    public static String USER_JJR = "1";

    // Banner广告位
    public static String GG_BANNER = "5";

    // 1 国家
    public static String AREA_GJ = "1";

    // 2 省份、直辖市
    public static String AREA_SHENG = "2";

    // 3 地市
    public static String AREA_SHI = "3";

    // 4 区县
    public static String AREA_XIAN = "4";

    // 商圈
    public static String SQ = "5";

    // 首页登录
    public static String DL_SY = "1";

    // 编码格式
    public static final Charset UTF_8 = Charset.forName("UTF-8");

    /**
     * App调用之后操作成功的默认消息，默认显示success.
     */
    public static final String APP_JSON_DEFAULT_SUCCESS_MSG = "success";

    /**
     * App调用之后返回的JSON表示数据的Key，使用data来标识，通常在获取数据时该Key才会有对应的Value.
     */
    public static final String APP_JSON_KEY_DATA = "data";

    /**
     * App调用之后返回的JSON表示提示消息的Key，使用message来标识.
     */
    public static final String APP_JSON_KEY_MESSAGE = "message";

    /**
     * App调用之后返回的JSON表示成功操作的结果码.
     */
    public static final int APP_RESULT_CODE_SUCCESS = 200;

    /**
     * App调用之后返回的JSON表示异常操作的结果码.
     */
    public static final int APP_RESULT_CODE_YC = 201;

    /**
     * App调用之后返回的JSON表示未知异常操作的结果码.
     */
    public static final int APP_RESULT_CODE_WZYC = 202;

    /**
     * App调用之后返回的JSON表示参数异常的结果码.
     */
    public static final int APP_RESULT_CODE_PARAMETER_INVALIDATE = 1;

    /**
     * App调用之后返回的JSON表示经纪人未找到的结果码，经纪人相关业务的异常以500X来表示.
     */
    public static final int APP_RESULT_CODE_BROKER_NOT_FOUND = 5001;

    /**
     * App调用之后返回的JSON表示结果代号的Key，如果成功则使用0表示，失败则使用具体的代号.
     */
    public static final String APP_JSON_KEY_RESULT_CODE = "errorCode";

    // 经纪人抢单，该单已经被人抢光
    public static final int ROB_ORDER_FAIL_RESULT_CODE = 5002;

    public static String COMMON = "1";

    public static String MES = "2";

    // 启用
    public static String QY = "1";

    // 回收
    public static String HS = "255";

    /**
     * MSG_STATE 0 未读
     */
    public static String MSG_STATE_UNREAD = "0";

    /**
     * MSG_STATE 1 已读
     */
    public static String MSG_STATE_READ = "1";

    /**
     * MSG_SAVE_TYPE 0 发送方
     */
    public static String MSG_SAVE_TYPE_SOURCE = "0";

    /**
     * MSG_SAVE_TYPE 1 接收方
     */
    public static String MSG_SAVE_TYPE_TARGET = "1";

    // 是
    public static String SHI = "true";

    // 否
    public static String FOU = "false";

    public static ArrayList getShiFouList() {

        ArrayList list = new ArrayList();
        list.add(new Dict(SHI, "是"));
        list.add(new Dict(FOU, "否"));
        return list;
    }

    // 审核通过
    public static String SH_TG = "1";

    // 审核不通过
    public static String SH_BTG = "2";

    // 等待审核
    public static String SH_DD = "3";

    // 发送成功 = Y
    public static String SEND_YES = "2";

    // 发送成功 = N
    public static String SEND_NO = "1";

    // 认证类型
    public static class CertificationType {

        public static final Integer IDENTITY = 1;// 身份证

        public static final Integer BUSINESS_CARD = 2;// 名片

        public static final Integer QUALIFICATION = 3;// 资质
    }

    // 认证审核
    public static class AuditType {

        public static final Integer NOT_AUDIT = 0;// 未审核

        public static final Integer AUDIT_WAIT = 1;// 等待审核

        public static final Integer AUDIT_PASS = 2;// 审核通过

        public static final Integer AUDIT_NO_PASS = 3;// 审核不通过
    }

    // 1.已同步
    public static String TB_Y = "1";

    // 2.未同步
    public static String TB_W = "0";

    // 认证类型
    public static class HOUSE_FB_Type {

        public static final Integer JJR = 1;// 经纪人

        public static final Integer YH = 2;// 用户
    }

    // 房源操作类型
    public static class HOUSE_TYPE_ZF_MF {

        public static final Integer ZF = 1;// 出租

        public static final Integer MF = 2;// 出售
    }

    public static class HouseMessageBelong_RESULT {

        public static final String HANDLE = "1";// 已处理

        public static final String UNHANDLE = "2";// 未处理
    }

    public static class HOUSEROSTER_STATE {

        public static final Integer ENABLE = 1;// 启用

        public static final Integer SHIELD = 2;// 屏蔽

        public static final Integer DELETED = 3;// 删除
    }

    public static class HOUSEROSTERAPPLY_STATE {

        public static final Integer AGREE = 1;// 已处理

        public static final Integer UNHANDLE = 2;// 未处理

        public static final Integer DELETED = 3;// 删除
    }

    public static class CERTIFICATION_TYPE {

        public static final Integer RZ_SM = 1;// 实名认证

        public static final Integer RZ_MP = 2;// 名片认证

        public static final Integer RZ_ZG = 3;// 资格认证
    }

    public static class CERTIFICATION_ZS {

        public static final Integer ZS_DD = 1;// 实名认证

        public static final Integer ZS_SJ = 2;// 省级证

        public static final Integer ZS_QG = 3;// 全国证
    }

    public static class EXCELLENT_TYPE {

        public static final String TYPE_YX_N = "1";// 否优秀

        public static final String TYPE_YX_Y = "2";// 优秀
    }

    public static class MYD {

        public static final Integer MYD_YB = 3;// 一般

        public static final Integer MYD_MY = 2;// 满意

        public static final Integer MYD_FCMY = 1;// 非常满意
    }

    public static int ONE_DAY_SECONDS = 24 * 60 * 60;

    // 等待付款
    public static String M_DDFK = "1";

    // 正在付款
    public static String M_ZZFK = "2";

    // 付款失败
    public static String M_FKSB = "3";

    // 付款成功
    public static String M_FKCG = "4";

    // DICT_TYPE
    public static String DICT_TYPE = "FETCH";
}
